package cn.blankchn.www.entity;

import java.io.Serializable;

/**
 * Created by apple on 2018/4/2.
 */
public class Time implements Serializable {

    //行号
    private int num;

    private double speed;
    private double acceleration;

    public Time(int num, double speed, double acceleration) {
        this.num = num;
        this.speed = speed;
        this.acceleration = acceleration;
    }

    public Time() {
    }

    @Override
    public String toString() {
        return "Time{" +
                "num=" + num +
                ", speed=" + speed +
                ", acceleration=" + acceleration +
                '}';
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public double getSpeed() {
        return speed;
    }

    public void setSpeed(double speed) {
        this.speed = speed;
    }

    public double getAcceleration() {
        return acceleration;
    }

    public void setAcceleration(double acceleration) {
        this.acceleration = acceleration;
    }

    public String handleStr() {
        return new StringBuilder()
                .append(num)
                .append(",")
                .append(speed)
                .append(",")
                .append(acceleration)
                .append("\r")
                .toString();
    }
}
